<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: Replaced Elements</title>
  <meta name="flags" content="ahem image" />
  <link rel="help" href="http://www.w3.org/TR/REC-CSS1#replaced-elements"/>
  <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <style type="text/css">* { margin: 0; padding: 0 }<![CDATA[
   p { color: navy; }
   img { display: inline; }
   span { color: blue; font: 15px/1 Ahem; vertical-align: top; background: red; }
   .b img, .b span { font-size: 4em/1; height: 1em; }
  ]]></style>
  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" title="10.4 Minimum and maximum widths: 'min-width' and 'max-width'"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements"/>
 </head>
 <body>
  <p>There should be no red anywhere.</p>
  <p class="a">
   There should be two identical squares at the end of this line:
   <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced." />
   <span>X</span>
  </p>
  <p class="b">
   There should be two identical squares at the end of this line:
   <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced." />
   <span>X</span>
  </p>
 </body>
</html>
